package cn.yitun.chat.yitunservercommonlib.converter.po2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupMemberInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupMemberVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupMemberPo2VoConverter {
    GroupMemberPo2VoConverter INSTANCE = Mappers.getMapper(GroupMemberPo2VoConverter.class);

    GroupMemberInfo vo2po(GroupMemberVo vo);

    List<GroupMemberInfo> vo2po(List<GroupMemberVo> voList);

    @InheritInverseConfiguration
    GroupMemberVo po2vo(GroupMemberInfo info);
    @InheritInverseConfiguration
    List<GroupMemberVo> po2vo(List<GroupMemberInfo> infoList);
}
